print bold python

29

print bold text python -

# print underline text in python
print("\033[4m"+ "YourText" + "\033[0m")

bold some letters of string in python -

from __future__ import unicode_literals, print_function
from prompt_toolkit import print_formatted_text, HTML

print_formatted_text(HTML('<b>This is bold</b>'))
print_formatted_text(HTML('<i>This is italic</i>'))
print_formatted_text(HTML('<u>This is underlined</u>'))

how to bold in colorama -

from simple_colors import *
print(green('hello', 'bold'))

Comments

Submit
0 Comments